<template>
  <div>
    <h1>这是一个子组件</h1>
    <button @click="num++">{{ num }}</button>
  </div>
</template>

<script>
// let obj = { num: 10 };
export default {
  data() {
    return {
      num: 10,
    };
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
